﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace TestWeb
{
    public class TempModule : IHttpModule
    {
        #region IHttpModule 成员

        public void Dispose()
        {
        }

        public void Init(HttpApplication context)
        {
            context.BeginRequest += new EventHandler(context_BeginRequest);

        }

        void context_BeginRequest(object sender, EventArgs e)
        {
            HttpApplication context = (HttpApplication)sender;

            string temp = null;

            temp = context.Request.Url.AbsolutePath;
            temp = context.Request.Url.Host;
            string[] temps = context.Request.Url.Segments;
            temp = context.Request.Url.OriginalString;
            temp = context.Request.Url.AbsoluteUri;
        }

        #endregion
    }
}
